Algorithms..::GetDictionaryConverter<(Of <TKey, TValue>)> Method (IDictionary<(Of <TKey, TValue>)>) |
See Also |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Creates a delegate that converts keys to values by used a dictionary to map values. Keys
that a not present in the dictionary are converted to the default value (zero or null).
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static Converter<TKey, TValue> GetDictionaryConverter<TKey, TValue>( IDictionary<TKey, TValue> dictionary ) |
Visual Basic (Declaration) |
---|
Public Shared Function GetDictionaryConverter(Of TKey, TValue) ( _ dictionary As IDictionary(Of TKey, TValue) _ ) As Converter(Of TKey, TValue) |
Visual C++ |
---|
public: generic<typename TKey, typename TValue> static Converter<TKey, TValue>^ GetDictionaryConverter ( IDictionary<TKey, TValue>^ dictionary ) |
Parameters
- dictionary
- IDictionary<(Of <TKey, TValue>)>
The dictionary used to perform the conversion.
Return Value
A delegate to a method that converts keys to values.Type Parameters
- TKey
- TValue
Remarks
This delegate can be used as a parameter in Convert or ConvertAll methods to convert
entire collections.
See Also
Algorithms Class
Wintellect.PowerCollections Namespace